package com.read.service;

import com.read.dto.params.RegisterParamsDto;
import com.read.dto.result.JwtUserDto;

public interface UserService {

    /**
     * @description 注册
     * @author sh-sunb6
     * @date 2019-02-21 10:10
     * @params RegisterParamsDto
     */
    public int registerUser(RegisterParamsDto paramsDto);

    /**
     * @description 用户名是否可用: true可用，false不可用 已存在
     * @author sh-sunb6
     * @date 2019-02-21 13:43
     * @param userName
     */
    public boolean isUserNameUsable(String userName);

    /**
     * @description 用户登陆 (用户名、手机号、邮箱)
     * @author sh-sunb6
     * @date 2019-02-21 15:29
     * @params account password
     */
    public JwtUserDto loginUser(String account, String password);
}
